import { Get,Post,Put,Delete } from "../utils/axios";

// 项目信息查询
export const FindAllItem =  (params:object) => {
    let ret = Get('item',params);
    return ret;
    // console.log(ret);
};
// 项目信息查询
export const FindItemById =  (params:any) => {
    let ret = Get('item/'+params.id);
    return ret;
    // console.log(ret);
};
// 项目信息添加
export const AddItem = (params:object) => {
    let ret = Post('item',params);
    return ret;
    // console.log(ret);
};
// 项目信息修改
export const UpdateItem = (params:object) => {
    let ret = Put('item',params);
    return ret;
    // console.log(ret);
};
// 项目信息删除
export const DeleteItem = (params:any) => {
    let ret = Delete('item/'+params.id);
    return ret;
    // console.log(ret);
};